<template>
  <div id="app"> 	
    <router-view/>
    
  </div>
</template>

<script>
//	import footnav from '@/components/footnav'
	
export default {
	
	name:'APP',
  data(){
  	return{

	}
  },
//components : {
//       footnav
//   },
//	 beforeCreate:function(){
// 	console.log(1)
// },
   created: function () {
    if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)))
      {

      this.$router.push({
        path:'/webapp'
    })//移动端
   }
    else{
      this.$router.push({
            path:'/pc/pcindex'
    })//pc端
   }
   
   },
mounted(){
	//页面初始化调用函数
    this.init();   
},
  	methods:{	
  		//页面初始化，需要完成的效果，判断底部按钮
         init(){
       var width = document.body.scrollWidth;
   	   console.log(width)
       }		
  	}
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}


</style>
